﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Manage.Master" AutoEventWireup="true" CodeBehind="ManageHome.aspx.cs" Inherits="OnlineAuction.Admin.ManageHome" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cph_Css" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_TopBar" runat="server">
    <asp:ScriptManager ID="SM" runat="server" EnablePartialRendering="true" />
    <asp:UpdatePanel ID="pnDay" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            Day:   
            <asp:DropDownList ID="ddlDay" runat="server" AutoPostBack="true" />
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="ddlMonth" EventName="SelectedIndexChanged" />
        </Triggers>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="pnMonth" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            Month:
            <asp:DropDownList ID="ddlMonth" runat="server" AutoPostBack="true"
                OnSelectedIndexChanged="ddlMonth_SelectedIndexChanged" />
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="ddlYear" EventName="SelectedIndexChanged" />
        </Triggers>
    </asp:UpdatePanel>
    Year:
    <asp:DropDownList ID="ddlYear" runat="server" OnSelectedIndexChanged="ddlYear_SelectedIndexChanged" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cph_Content" runat="server">
    <asp:UpdatePanel ID="UpdtPnlForGrdVw" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Timer runat="server" ID="UpdateTimer" Interval="1000" OnTick="UpdateTimer_Tick" />
            <asp:GridView ID="grvRevenue" runat="server" AutoGenerateColumns="False" ShowFooter="True"
                OnRowDataBound="grvRevenue_RowDataBound" GridLines="None" CellPadding="4" ForeColor="#333333">
                <Columns>
                    <asp:BoundField HeaderText="Auction ID" DataField="AuctionID" />
                    <asp:BoundField HeaderText="Seller" DataField="Seller" />
                    <asp:BoundField HeaderText="Time Start Auction" DataField="TimeStartAuction" />
                    <asp:BoundField HeaderText="Time Finish Auction" DataField="TimeFinishAuction" />
                    <asp:BoundField HeaderText="First Price" DataField="FirstPrice" />
                    <asp:BoundField HeaderText="Final Price" DataField="FinalPrice" />
                    <asp:BoundField HeaderText="Winner" DataField="Buyer" FooterText="Total fee: " />
                    <asp:BoundField HeaderText="Fee money" DataField="FeeMoney" />
                </Columns>
                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <EmptyDataTemplate>
                    <asp:Label ID="lbEmpty" runat="server" Text="Don't have anythings sold..." />
                </EmptyDataTemplate>
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
